<?php
set_include_path(XOOPS_TRUST_PATH . '/PEAR' . PATH_SEPARATOR . get_include_path());
require_once 'Xigg.php';
require_once 'SabaiXOOPS.php';
Sabai::start(SABAI_LOG_ERROR_ALL, _CHARSET, SabaiXOOPS::getLocales());
Sabai_URL::method(SABAI_URL_METHOD_PATHINFO);
$xigg =& SabaiXOOPS::toModule(Xigg::getInstance(), $module_dirname);
$xigg->addPluginDir(XOOPS_ROOT_PATH . '/modules/' . $module_dirname . '/plugins');
$xigg->addPluginDir(dirname(__FILE__) . '/plugins');
$xigg->setCacheDir(XOOPS_ROOT_PATH . '/modules/' . $module_dirname . '/cache');